home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-02-21 | 462 b | 24 lines | [TEXT/RLAB] |
- CONTINUE:
-
- The continue statement in RLaB is similar to the C language
- continue statement. When a continue statement is encountered,
- it causes the next iteration of the enclosing for or while
- loop to begin.
-
- For example, the following set of statements causes the
- variable `i' to be printed when it's value is 2.
-
- > for (i in 1:3)
- {
- if (i == 2)
- {
- i ?
- else
- continue
- }
- }
- i =
- 2
-
- See Also: BREAK, FOR, WHILE
-